package com.hrbxlh.dao;

import java.util.Map;

import org.apache.tools.ant.taskdefs.optional.extension.LibFileSet;
import org.springframework.stereotype.Repository;

@Repository
public interface LoginDao {
	
	/**
	 * @description 添加每个登陆人的登陆时间。 
	 * @param Map<String,Object> paramMap
	 * @return 
	 * @throws Exception
	 */
	 void addLogin(Map<String, Object> paramMap) throws Exception;
	
	/**
	 * @description 添加每个登陆人的登陆时间。 
	 * @param Map<String,Object> paramMap
	 * @return 
	 * @throws Exception
	 */
	 boolean upLogin(Map<String, Object> paramMap) throws Exception;

	/**
	 * 通过登陆名查询登陆次数
	 * @param paramMap stuorteaId
	 * @return
	 * @throws Exception
	 */
	 long loginCoutBySid(Map<String, Object> paramMap) throws Exception;

	/**
	 * 查询当前登录人此次退出的信息
	 * @param paramMap stuorteaId
	 * @return
	 * @throws Exception
	 */
	 Map<String,Object> getLoginInfoByMainId(Map<String, Object> paramMap) throws Exception;

	/**
	 * 查询某人登录总时长
	 * @return
	 * @throws Exception
	 */
	 Map<String,Object> getStayTime(Map<String,Object> map) throws Exception;

	/**
	 * 查询登陆表中最大的主键id
	 * @param paramMap stuorteaId
	 * @return
	 * @throws Exception
	 */
	long getMaxPrimId() throws Exception;

}
